package practice01.info;

/**
 * @author Administrator
 * @version V1.0
 * @ProjectName:IntelliJ IDEA
 * @PackageName: practice01.info
 * @ClassName: Commodity
 * @Description: TODO(这里用一句话描述这个类的作用)
 * @date 2019/12/5 18:25
 * @Copyright 大牛版板所有
 */
public class Commodity {
    private String type; // 商品类型
    private int number;  // 类型编号

    public Commodity(String type, int number) {
        this.setType(type);
        this.setNumber(number);
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public void showType(){
        System.out.println(this.getType()+"类的商品的编号为："+this.getNumber());
    }
}
